package com.yhh.xiaohongshuauth.enums;

import com.yhh.framework.common.exception.BaseExceptionInterface;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author Eason
 * @Date 2025-04-18 15:58
 * @PackageName:com.yhh.xiaohongshuauth.enums
 * @ClassName: ResponseCodeEnum
 * @Description: TODO
 */
@Getter
@AllArgsConstructor
public enum ResponseCodeEnum implements BaseExceptionInterface {

    // ----------- 通用异常状态码 -----------
    SYSTEM_ERROR("AUTH-10000", "出错啦，后台小哥正在努力修复中..."),
    PARAM_NOT_VALID("AUTH-10001", "参数错误"),

    // ----------- 业务异常状态码 -----------
    VERIFICATION_CODE_SEND_FREQUENTLY("AUTH-20000", "请求太频繁，请3分钟后再试"),
    VERIFICATION_CODE_ERROR("AUTH-20001", "验证码错误"),
    USER_ASSIGN_ROLE_FAILED("AUTH-20002", "权限插入失败"),
    USER_REGISTER_FAILED("AUTH-20003", "用户插入失败" );

    // 异常码
    private final String errorCode;
    // 错误信息
    private final String errorMessage;


}
